import * as TYPES from "../action-types"

const homeAction = {
    homeGET(type){ //获取用户数据
        return{
            type:TYPES.HOME_GET_LIST,
            payload:type
        }
    },
    homeClick(obj){ //用户点击的视频信息
        console.log("*********",obj);
        return{
            type:TYPES.HOME_CLICK,
            payload:obj
        }
    },
    homeTouch(clas){
        console.log(clas);
        return{
            type:TYPES.HOME_TOUCH,
            payload:clas
        }
    },
    homePublished(obj){
        console.log(obj);
        return{
            type:TYPES.HOME_PUBLISHED_WORKS,
            payload:obj
        }
    }
}

export default homeAction